﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PMSMVC.Models
{
    [Table("ProductType")]
    public class ProductType
    {
        [Key,DatabaseGenerated(DatabaseGeneratedOption.None),Display(Name="产品类型"),StringLength(50)]
        public string ProductTypeID { get; set; }
        [Display(Name = "产品类型名称"), StringLength(50)]
        public string ProductTypeName { get; set; }
        [Display(Name = "项目编号"), StringLength(50), ForeignKey("Project")]
        public string ProjectID { get; set; }
        [Display(Name="客户"),StringLength(50)]
        public string CustomerID { get; set; }
        [Display(Name="备注"),StringLength(200),DataType(DataType.MultilineText)]
        public string Remark { get; set; }
        public virtual Project Project { get; set; }
    }
}